package com.fcscs.cservice.client.common.model.configuration.inroomdining;

import java.util.Collection;
import java.util.Map;

import com.fcscs.core.gwt.common.CoreConstants;
import com.fcscs.core.gwt.common.EntityModelData;
import com.fcscs.cservice.client.common.CServiceConstants;

public class ChargeCategoryModelData extends EntityModelData<ChargeCategory> {

	public ChargeCategoryModelData(ChargeCategory t) {
		super(t);
	}

	@Override
	protected void populateNames(Collection<String> tempNames) {
		tempNames.add(CoreConstants.FULLTNAME);
		tempNames.add(CoreConstants.CODE);
		tempNames.add(CServiceConstants.C_CONF);
		tempNames.add(CServiceConstants.DESCRIPTIONICON);
		tempNames.add(CServiceConstants.COOKOPTION);
	}

	@Override
	protected void populateProps(Map<String, Object> props) {
		props.put(CoreConstants.FULLTNAME, entity.getChargeCategory());
		props.put(CoreConstants.CODE, entity.getServiceCharge());
		props.put(CServiceConstants.C_CONF, entity.getDeliveryCharge());
		props.put(CServiceConstants.DESCRIPTIONICON, entity.getSalesTax());
		props.put(CServiceConstants.COOKOPTION, entity.getVAT());
	}

	@Override
	protected <X> void setProperty(String property, X value) {

	}

}
